package banking.domain;

// 异常类 扩展 Exception 类。
public class OverdraftException extends Exception {
    private double deficit;

    public OverdraftException(String msg, double deficit) {
        super(msg);
        this.deficit = deficit;
    }

    public double getDeficit() {
        return deficit;
    }
}
